package com.cwy.springcloud.service.impl;

import com.cwy.springcloud.dao.PaymentDao;
import com.cwy.springcloud.entity.Payment;
import com.cwy.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * ClassName: PaymentServiceImpl
 * PackageName: com.cwy.springcloud.service.impl
 * Describe:
 *
 * @author: Cheng Wenying
 * @Create: 2024/2/1
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    PaymentDao paymentDao;

    @Override
    public int creat(Payment payment) {
        return paymentDao.insert(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.selectById(id);
    }
}
